package com.itic.appbase.framework.type;

public enum ExpressState {
	sending("001","已发货"),received("002","已收货");
	private String state;
	private String name;
	ExpressState(String state,String name){
		this.state = state;
		this.name = name;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static ExpressState getExpressState(String state){
		ExpressState expressState = null;
		switch(state){
		case "001": expressState = ExpressState.sending;
		break;
		case "002": expressState = ExpressState.received;
		break;
		default:break;
		}
		return expressState;
	}
}
